var base64Str = emhhbmdzYW46MTIzNDU2;
var buf = Buffer.from(arg, "base64");
var str = buf.toString("utf-8");
console.log(str);